import matplotlib.pyplot as plt
import numpy as np

index = np.arange(5)
values = [5, 6, 3, 4, 6]
values2 = [1,2,3,4,5]
res = [values, values2]
res = np.array(res)
res = np.mean(res, axis=0)

ans1=[values,res]
print(ans1)

SD = [5-4, 1-2, 0.4, 0.9, 1.3]
plt.title('A Bar Chart')
plt.bar(index, values, yerr = SD, error_kw = {'ecolor' : '0.2', 'capsize' :6}, alpha=0.7, label = 'First')
plt.xticks(index+0.2,['a', 'b', 'c', 'd', 'e'])
plt.legend(loc=2)
plt.show()
